package cqrtplm.entity;

import cqrtplm.log.ObjectComparator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;

@Data
@Entity
@Table(name = "RT_CERT_FILED_CUSTOMER")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "备案客户信息实体类")
public class RtCertFiledCustomerDO {

    @Id
    @Column(name = "ID", length = 100, nullable = false)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @Column(name = "CTYPE", length = 200)
    @ApiModelProperty(value = "客户类型")
    private String ctype;

    @Column(name = "MODEL", length = 200)
    @ApiModelProperty(value = "型号")
    private String model;

    @Column(name = "KHMC", length = 100)
    @ApiModelProperty(value = "客户代码")
    private String khmc;

    @Column(name = "SB", length = 100)
    @ApiModelProperty(value = "商标")
    private String sb;

    @Column(name = "KHXH", length = 200)
    @ApiModelProperty(value = "客户备案机型")
    private String khxh;

    @Column(name = "OLDID", length = 100)
    @ApiModelProperty(value = "老PLMID")
    private String oldId;

    @Column(name = "FILEDID", length = 100)
    @ApiModelProperty(value = "关联主表ID")
    private String filedId;

    @Column(name = "DKXH", length = 100)
    @ApiModelProperty(value = "打刻型号")
    private String dkxh;

    @Column(name = "REMARK", length = 500)
    @ApiModelProperty(value = "备注")
    private String remark;

    @Column(name = "CREATEUSERID", length = 100)
    @ApiModelProperty(value = "创建人ID")
    @ObjectComparator.RTIgnore
    private String createUserId;

    @Column(name = "CREATEUSERNAME", length = 100)
    @ApiModelProperty(value = "创建人")
    @ObjectComparator.RTIgnore
    private String createUserName;

    @Column(name = "CREATETIME")
    @ApiModelProperty(value = "创建时间")
    @ObjectComparator.RTIgnore
    private Timestamp createTime;

    @Column(name = "UPDATEUSERID", length = 100)
    @ApiModelProperty(value = "更新人ID")
    @ObjectComparator.RTIgnore
    private String updateUserId;

    @Column(name = "UPDATEUSERNAME", length = 100)
    @ApiModelProperty(value = "更新人")
    @ObjectComparator.RTIgnore
    private String updateUserName;

    @Column(name = "UPDATETIME")
    @ApiModelProperty(value = "更新时间")
    @ObjectComparator.RTIgnore
    private Timestamp updateTime;

    private List<RtCertEuemissionsnoDO> euemissionsnolist;
}